package com.cleaningcloud.cld.domain;

import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 请假管理对象 cld_leave
 * 
 * @author cleaningcloud
 * @date 2024-11-08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class CldLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 请假ID */
    private Long leaveId;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    // 员工id
    private Long staffId;

    /** 请假原因 */
    @Excel(name = "请假原因")
    private String leaveReason;

    /** 请假开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 请假结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 备注是否关闭 */
    @Excel(name = "备注是否关闭")
    private Long flag;

    /** 审批状态(1待审批2被驳回3已通过) */
    @Excel(name = "审批状态(1待审批2被驳回3已通过)")
    private Long approveStatus;

    /** 审批人ID */
    @Excel(name = "审批人ID")
    private Long approveId;

    /** 审批人名称 */
    @Excel(name = "审批人名称")
    private String approveName;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    /** 驳回原因 */
    @Excel(name = "驳回原因")
    private String resultReason;

}
